package com.mrx.pvzcommunity.model.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "登录 用户对象")
public class LogUser {
    @ApiModelProperty(value = "用户 账号", example = "1")
    private long account;
    @ApiModelProperty(value = "用户 密码", example = "123456")
    private String password;

    public User toUser() {
        return new User(account, password);
    }
}
